package com.atgugui.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用eduorder模块中的接口
 */
@FeignClient(name = "service-order")
@Component
public interface OrderClient {
    @GetMapping("/eduorder/t-order/isBuyCourse/{courseId}/{memberId}")
    boolean isBuyCourse(@PathVariable String courseId, @PathVariable String memberId);
}
